// ActionScript file
package com.moonshineproject.atomic.parser
{
	/**
	 * UserProfile describes the user's profile details.
	 * 
	 */
	public class Diff
	{		
		// Number of affected chars
		public var diff:int;
		public var change:String;
		
		public var start:int;
		public var end:int;
		
		public var psuedoTime:int;
		
		public var applied:Boolean;
		
		public var local:Boolean;
		
		public function Diff(p_diff:int=0, p_change:String=null, p_start:int=-1, p_end:int=-1, p_psuedoTime:int = -1):void
		{
			diff = p_diff;
			
			if (p_change != null)
				change = p_change;
				
			if (p_start >= 0)
				start = p_start;
			
			if (p_end >= 0)
				end = p_end;
			
			if (p_psuedoTime >= 0)
				psuedoTime = p_psuedoTime; 
		}
	}
}